package com.ruoyi.web.controller.customer;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.CommomQa;
import com.ruoyi.system.domain.StageQa;
import com.ruoyi.system.service.ICommomQaService;
import com.ruoyi.system.service.IStageQaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/common/qa")
public class CommonQaController extends BaseController {

    @Autowired
    private ICommomQaService commomQaService;

    @GetMapping("/list")
    @Anonymous
    public AjaxResult list(CommomQa commomQa) {
        List<CommomQa> list = commomQaService.selectCommomQaList(commomQa);
        return success(list);
    }

}
